Skip to content

BUILD: Take the free-threaded tests' data files from common-ci's shared copy - #298

Merged
jwrosewell merged 4 commits into
rcfrom
build/shared-assets
Dec 1, 2026
Merged

jwrosewell merged 4 commits into
rcfrom
build/shared-assets

Conversation

@jwrosewell

@jwrosewell jwrosewell commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Why

The data files and test evidence the tests read are now downloaded once a day into one encrypted copy that every repository uses, by common-ci's Nightly Shared Assets workflow (51Degrees/common-ci#383). No repository, branch, pull request or run downloads its own copy, and nothing keeps one in a repository's own Actions cache. common-ci's actions/fetch-assets restores the named assets from that copy, decrypting a licensed file with CACHE_ENCRYPTION_KEY, and no longer takes cache, lazy or a license.

What changes

  • .github/workflows/free-threaded-python.yml: the Configure job, which ran common-ci's prefetch_assets to fill this repository's Actions cache, is removed. Each test job restores the four free data files from the shared copy with actions/fetch-assets, which needs no key for free files, in place of restoring that cache entry.
  • .github/workflows/examples-published.yml: the free files are restored from the shared copy without cache, and the TAC file the data file update example's tests serve is restored from it with CACHE_ENCRYPTION_KEY in that step's environment, in place of a download with the data file license.
  • ci/check-environment-variable-names.ps1: CACHE_ENCRYPTION_KEY joins the names only CI uses.
  • ci/free-threaded-python.Tests.ps1: expects that restore in each test job, before the files are put in place, with no actions/cache, no prefetch_assets and no cache, lazy or key input.

When to merge

Only after 51Degrees/common-ci#383, which has, and 51Degrees/common-ci#385, which takes the key from the calling step's environment, have reached common-ci's main, because this repository calls 51Degrees/common-ci/actions/fetch-assets@main. Before that, the action on main still downloads, and without cache it would download in every run. This pull request is a draft until then.

Tests

Pester 6.2.0 on Windows, ci/free-threaded-python.Tests.ps1 against the changed workflow: 10 passed, none failed.

@jwrosewell
jwrosewell marked this pull request as ready for review December 1, 2026 13:56
@jwrosewell
jwrosewell merged commit df9a59c into rc Dec 1, 2026
13 of 18 checks passed
@jwrosewell
jwrosewell deleted the build/shared-assets branch December 1, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant